package com.beanconvert.xml.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "SourceBean")
@XmlAccessorType(XmlAccessType.FIELD)
public class SourceBean {

	@XmlAttribute(name = "name")
	private String srcBeanName;
	
	@XmlElement(name = "field")
	private List<BeanField> fields;

	public SourceBean() {
		
		// TODO Auto-generated constructor stub
	}

	public String getSrcBeanName() {
		return srcBeanName;
	}

	public void setSrcBeanName(String srcBeanName) {
		this.srcBeanName = srcBeanName;
	}

	public List<BeanField> getFields() {
		return fields;
	}

	public void setFields(List<BeanField> fields) {
		this.fields = fields;
	}

	@Override
	public String toString() {
		return "SourceBean [srcBeanName=" + srcBeanName + ", fields=" + fields
				+ "]";
	}
	
	
	
	
}
